package designPattern.factorPattern.abstractFactorPattern;

/**
 * FruitFactory
 *
 * @author nanxin.chen
 * @date 2015/8/28
 */
public class FactoryChina implements IAbstractFactory {
    @Override
    public IFruit getFruit(String type) {
        switch (type) {
            case "apple":
                return new AppleC();
            default:
                return new AppleC();
        }
    }

    @Override
    public IMeat getMeat(String type) {
        switch (type) {
            case "pig":
                return new PigIMeatC();
            default:
                return new PigIMeatC();
        }
    }
}
